package com.example.命令模式;

/**
 * 测试客户端
 */
public class MainClient {

    public static void main(String[] args) {
        CommandController commandController = new CommandController();
        Light light = new Light();
        LinghtOnCommand linghtOnCommand = new LinghtOnCommand(light);

        commandController.setCommand(linghtOnCommand);
        commandController.buttonWasPressed();
    }
}
